package com.coolt.client.components;

import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.VerticalPanel;

public class CooltHeader extends HorizontalPanel {

	TopMenu topmenu = new TopMenu();
	Search search = new Search();

	public CooltHeader() {

		setWidth("100%");
		setVerticalAlignment(VerticalPanel.ALIGN_TOP);

		search.setHorizontalAlignment(HorizontalPanel.ALIGN_CENTER);

		HorizontalPanel hpLeft = new HorizontalPanel();
		hpLeft.setWidth("230");

		VerticalPanel vpRigth = new VerticalPanel();
		vpRigth.setWidth("100%");
		vpRigth.setVerticalAlignment(VerticalPanel.ALIGN_TOP);

		vpRigth.setHorizontalAlignment(HorizontalPanel.ALIGN_RIGHT);
		vpRigth.add(topmenu);

		vpRigth.setHorizontalAlignment(HorizontalPanel.ALIGN_LEFT);
		vpRigth.add(search);

		add(hpLeft);
		add(vpRigth);

	}

}
